.class Lcom/waiqin365/lightapp/syorder/product/a/o;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/CheckBox;

.field final synthetic b:Lcom/waiqin365/lightapp/syorder/product/a/m;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/syorder/product/a/m;Landroid/widget/CheckBox;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iput-object p2, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->a:Landroid/widget/CheckBox;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->a:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/syorder/d/b;

    iget-object v1, v0, Lcom/waiqin365/lightapp/syorder/d/b;->v:Ljava/lang/String;

    invoke-static {v1}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/product/a/m;->a()Landroid/content/Context;

    move-result-object v0

    const-string/jumbo v1, "\u6b64\u5546\u54c1\u672a\u540c\u6b65\u5230\u5916\u52e4365\u6570\u636e\u5e93\u4e2d\uff01"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/m;->f:Lcom/waiqin365/lightapp/syorder/product/a/q;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iget-object v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/m;->f:Lcom/waiqin365/lightapp/syorder/product/a/q;

    invoke-interface {v1, v0}, Lcom/waiqin365/lightapp/syorder/product/a/q;->onClick(Lcom/waiqin365/lightapp/syorder/d/b;)V

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/syorder/product/a/m;->k:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    invoke-static {v1}, Lcom/waiqin365/lightapp/syorder/product/a/m;->a(Lcom/waiqin365/lightapp/syorder/product/a/m;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    invoke-static {v1}, Lcom/waiqin365/lightapp/syorder/product/a/m;->a(Lcom/waiqin365/lightapp/syorder/product/a/m;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/product/a/m;->notifyDataSetChanged()V

    goto :goto_0

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/product/a/o;->b:Lcom/waiqin365/lightapp/syorder/product/a/m;

    invoke-static {v1}, Lcom/waiqin365/lightapp/syorder/product/a/m;->a(Lcom/waiqin365/lightapp/syorder/product/a/m;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1
.end method
